package com.banmao.mall.service.client;

import com.banmao.mall.model.bo.client.cart.CartAddBO;
import com.banmao.mall.model.bo.client.cart.CartCheckedBO;
import com.banmao.mall.model.bo.client.cart.CartUpdateBO;
import com.banmao.mall.model.vo.client.cart.CartCheckoutVO;
import com.banmao.mall.model.vo.client.cart.CartIndexVO;

import java.util.List;


public interface CartService {

    CartIndexVO getCartList(Integer userId);

    Boolean addCart(CartAddBO cartAddBO, Integer userId);

    Boolean checkedCart(CartCheckedBO cartCheckedBO, Integer userId);

    Integer cartGoodsCount(Integer userId);


    Integer cartDelete(Integer userId, List<Integer> productIds);

    Integer cartUpdate(Integer userId, CartUpdateBO cartUpdateBO);

    CartCheckoutVO checkout(Integer userId, Integer cartId, Integer addressId, Integer couponId, Integer grouponRulesId);

    Integer getCartCount(Integer userId);

    Integer fastAdd(CartAddBO cartAddBO, Integer userId);
}
